#include "GraphicsItem.h"
#include <gui\painting\qpainter.h>

GraphicsItem::GraphicsItem()
{

}

GraphicsItem::~GraphicsItem()
{

}

QRectF GraphicsItem::boundingRect() const
{
	qreal adjust = 0.5;
	return QRectF(-18 - adjust, -22 - adjust,	36 + adjust, 60 + adjust);
}

QPainterPath GraphicsItem::shape() const
{
	QPainterPath path;
	path.addRect(-10, -20, 20, 40);
	return path;
}

void GraphicsItem::paint( QPainter *painter, const QStyleOptionGraphicsItem *, QWidget * )
{
	painter->setBrush(Qt::blue);
	painter->drawEllipse(-10, -20, 20, 40);
}

void GraphicsItem::advance( int step )
{

}
